<script setup lang="ts">
import { reactive } from "vue";
const user = reactive({ name: "史蒂夫", power: 100 })
const pClick = () => {
  user.power++;
  console.log(user);
}
</script>
<template>
  <p @click="pClick()">{{ user }}</p>
</template>
<style scoped></style>